package com.scs.application.modules.equipment.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>
 * 基础数据-医院资产分类表
 * </p>
 *
 * @author CodeGenerator
 * @since 2023-12-08
 */
@TableName("base_asset_classify")
@EntityClassAnnotation(remark = "设备资产分类表")
@Accessors(chain = true)
@Data
public class BaseAssetClassify extends DataEntity {
//
//        @EntityFieldAnnotation(
//            text = "id",
//              type = EntityFieldType.LONG,
//            not_null = false,
//            default_value = "0",
//            comment = "id"
//    )
//    private String id;

        @EntityFieldAnnotation(
            text = "分类编码",
            not_null = false,
            default_value = "",
            comment = "分类编码"
    )
    private String code;

        @EntityFieldAnnotation(
            text = "分类名称",
            not_null = false,
            default_value = "",
            comment = "分类名称"
    )
    private String name;

        @EntityFieldAnnotation(
            text = "品名助记码|品名助记码",
            not_null = false,
            default_value = "",
            comment = "品名助记码|品名助记码"
    )
    private String namePy;

        @EntityFieldAnnotation(
            text = "分类说明",
            not_null = false,
            default_value = "",
            comment = "分类说明"
    )
    private String examples;

        @EntityFieldAnnotation(
            text = "预计使用年限(按年保存)",
            not_null = false,
            default_value = "0",
            comment = "预计使用年限(按年保存)"
    )
    private Integer serviceLife;

        @EntityFieldAnnotation(
            text = "残值率（用小数表示）",
            not_null = false,
            comment = "残值率（用小数表示）"
    )
    private BigDecimal residualRate;

        @EntityFieldAnnotation(
            text = "年折旧率（用小数表示）",
            not_null = false,
            comment = "年折旧率（用小数表示）"
    )
    private BigDecimal deprRateAnnua;

        @EntityFieldAnnotation(
            text = "排序",
            not_null = false,
            default_value = "0",
            comment = "排序"
    )
    private Integer sort;

        @EntityFieldAnnotation(
            text = "颜色。例如：#FFFFFF、blue、rgba(0,0,0,0.5)",
            not_null = false,
            default_value = "",
            comment = "颜色。例如：#FFFFFF、blue、rgba(0,0,0,0.5)"
    )
    private String color;

        @EntityFieldAnnotation(
            text = "parent_id",
              type = EntityFieldType.LONG,
            not_null = false,
            default_value = "0",
            comment = "parent_id"
    )
    private String parentId;

        @EntityFieldAnnotation(
            text = "是否禁用: 1:是，0: 否",
            not_null = false,
            default_value = "",
            comment = "是否禁用: 1:是，0: 否"
    )
    private String flagDisabled;



}
